<log4net>
  <!-- A1 is set to be a ConsoleAppender -->
  <appender name="A1" type="log4net.Appender.ConsoleAppender">
    <threshold value="DEBUG"/>
    <!-- A1 uses PatternLayout -->
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%property{ProcessId}-%thread] %-5level %class:%line  %message%newline" />
    </layout>
  </appender>

  <appender name="OutputDebugStringAppender" type="log4net.Appender.OutputDebugStringAppender" >
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level %class:%line  %message%newline" />
    </layout>
  </appender>

    <appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
        <threshold value="DEBUG" />
        <appendToFile value="true" />
        <DatePattern value="yyyy-MM-dd'.log'" />
        <rollingStyle value="Date" />
        <file value="logs\\rollback-" />
        <param name="StaticLogFileName" value="false" />
        <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date %property{log4net:HostName} [%property{ProcessId}-%thread] %-5level %class:%line  %message%newline" />
        </layout>
    </appender>

    <!-- Set root logger level to DEBUG and its only appender to A1 -->
  <root>
    <level value="DEBUG" />
      <appender-ref ref="A1" />
      <appender-ref ref="FileAppender" />   
      <appender-ref ref="OutputDebugStringAppender" />
  </root>
</log4net>